/*
 * RealDescription.java
 * 
 * last update: 24.01.2010 by Olaru Victor
 * 
 * author:	Victor(victor.olaru@gmail.com)
 * 
 * Obs:
 */

package engine;

import middle.*;

/**
 * The description of a Real reg
 */

@SuppressWarnings("serial")
class RealDescription extends Symbol implements MemoryDescription{

	public RealDescription(String name, int lineNo){
		super(name, lineNo);
	}

	Object instantiate(NameSpace ns, ScopeNode thisScope)throws ParseException{
		Real r = new Real();
		(new WatchMonitor(r, thisScope.addLeaf(Constants.realIcon, name, r))).trigger();
		main.historyManager.registerVariable(r, ns + "." + name);
		return r;
	}

	public int getType(){
		return realType; //correct ?
	}


	public int getArrayStart(){return 0;}
	public int getArrayEnd(){return 0;}

	public boolean isMemory(){return false;}

	public String toString(){
		return name;
	}
}








